﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Teacher:Person
    {
        private string title;
        private int wageno;

       
        public string Title
        {
            get { return this.title; }
            set { this.title = value; }
        }
        public int Wageno
        {
            get { return this.wageno; }
            set { this.wageno = value; }
        }
        public Teacher(string name, int id, string sex, string cardid, string tel, string title, int wageno) : base(name, id, sex, cardid, tel)
        {
            this.Title = title;
            this.Wageno = wageno;
        }
        public void GetTeacher()
        {
            base.GetData();
            Console.WriteLine("我的职称是{0},我的工资号是{1}",this.title, this.wageno);
        }
    }
}
